config BR2_PACKAGE_ZBAR
	bool "zbar"
	depends on BR2_TOOLCHAIN_HAS_THREADS # libv4l
	depends on BR2_USE_MMU # libv4l
	depends on BR2_INSTALL_LIBSTDCPP # libv4l
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # v4l2_query_ext_ctrl
	select BR2_PACKAGE_JPEG
	select BR2_PACKAGE_LIBV4L
	help
	  QR and barcode scanner

	  https://git.linuxtv.org/zbar.git/about/

comment "zbar needs a toolchain w/ threads, C++ and headers >= 3.17"
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS \
		|| !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
